<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>kisebo: Código-Fonte de F:/Projetos/Rodrigo/kisebo/src/kisebo/Livro.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Gerado por Doxygen 1.5.7.1 -->
<script type="text/javascript">
<!--
function changeDisplayState (e){
  var num=this.id.replace(/[^[0-9]/g,'');
  var button=this.firstChild;
  var sectionDiv=document.getElementById('dynsection'+num);
  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
    sectionDiv.style.display='block';
    button.src='open.gif';
  }else{
    sectionDiv.style.display='none';
    button.src='closed.gif';
  }
}
function initDynSections(){
  var divs=document.getElementsByTagName('div');
  var sectionCounter=1;
  for(var i=0;i<divs.length-1;i++){
    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
      var header=divs[i];
      var section=divs[i+1];
      var button=header.firstChild;
      if (button!='IMG'){
        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
        button=document.createElement('img');
        divs[i].insertBefore(button,divs[i].firstChild);
      }
      header.style.cursor='pointer';
      header.onclick=changeDisplayState;
      header.id='dynheader'+sectionCounter;
      button.src='closed.gif';
      section.id='dynsection'+sectionCounter;
      section.style.display='none';
      section.style.marginLeft='14px';
      sectionCounter++;
    }
  }
}
window.onload = initDynSections;
-->
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Página&nbsp;Principal</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Arquivos</span></a></li>
      <li><a href="dirs.html"><span>Diretórios</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;Arquivos</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_e5fb231306b426dbf7288f735af63cb9.html">src</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_8c0497d54df0514193af848d7b3013ef.html">kisebo</a>
  </div>
</div>
<div class="contents">
<h1>Livro.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef LIVRO_H_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define LIVRO_H_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="keyword">using namespace </span>std;
<a name="l00007"></a>00007 
<a name="l00013"></a><a class="code" href="class_livro.html">00013</a> <span class="keyword">class </span><a class="code" href="class_livro.html" title="Classe para controle dos livros.   Principal elemento do sistema.">Livro</a>
<a name="l00014"></a>00014 {
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="keyword">private</span>:
<a name="l00017"></a>00017 
<a name="l00021"></a><a class="code" href="class_livro.html#96fa27980f3ba2342c0d1a3b022b95a1">00021</a>         <span class="keywordtype">long</span> <a class="code" href="class_livro.html#96fa27980f3ba2342c0d1a3b022b95a1">id</a>;
<a name="l00022"></a>00022 
<a name="l00026"></a><a class="code" href="class_livro.html#d6b669e1ed4f95c222d6c27b97db212d">00026</a>         <span class="keywordtype">string</span> <a class="code" href="class_livro.html#d6b669e1ed4f95c222d6c27b97db212d">titulo</a>;
<a name="l00027"></a>00027 
<a name="l00031"></a><a class="code" href="class_livro.html#ffacf9aa8e267a8fc99645b99375da8a">00031</a>         <span class="keywordtype">string</span> <a class="code" href="class_livro.html#ffacf9aa8e267a8fc99645b99375da8a">autor</a>;
<a name="l00032"></a>00032 
<a name="l00036"></a><a class="code" href="class_livro.html#090e866f19b3351f77ef5bf5f9484a70">00036</a>         <span class="keywordtype">string</span> <a class="code" href="class_livro.html#090e866f19b3351f77ef5bf5f9484a70">tema</a>;
<a name="l00037"></a>00037 
<a name="l00041"></a><a class="code" href="class_livro.html#aebfd28adbd0f40a2f840c79f5859a16">00041</a>         <span class="keywordtype">double</span> <a class="code" href="class_livro.html#aebfd28adbd0f40a2f840c79f5859a16">valor</a>;
<a name="l00042"></a>00042 
<a name="l00046"></a><a class="code" href="class_livro.html#a76734ab7e377b106d017bb9dc527ff8">00046</a>         <span class="keywordtype">string</span> <a class="code" href="class_livro.html#a76734ab7e377b106d017bb9dc527ff8">edicao</a>;
<a name="l00047"></a>00047 
<a name="l00051"></a><a class="code" href="class_livro.html#522defcbd26d9af768080aa7fbfefeca">00051</a>         <span class="keywordtype">int</span> <a class="code" href="class_livro.html#522defcbd26d9af768080aa7fbfefeca">anoPublicacao</a>;
<a name="l00052"></a>00052 
<a name="l00056"></a><a class="code" href="class_livro.html#a4c7eebc7dcc6150d86dbfbb53c8793d">00056</a>         <span class="keywordtype">string</span> <a class="code" href="class_livro.html#a4c7eebc7dcc6150d86dbfbb53c8793d">paginas</a>;
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="keyword">public</span>:
<a name="l00059"></a>00059 
<a name="l00066"></a>00066         <a class="code" href="class_livro.html#4b89ad279d36589f7337083cdf006861" title="Construtor padrão Construtor padrão do livro, utilizado para criar um livro.  ...">Livro</a>();
<a name="l00067"></a>00067 
<a name="l00083"></a>00083         <a class="code" href="class_livro.html#4b89ad279d36589f7337083cdf006861" title="Construtor padrão Construtor padrão do livro, utilizado para criar um livro.  ...">Livro</a>(<span class="keywordtype">long</span> _id, <span class="keywordtype">string</span> _titulo, <span class="keywordtype">string</span> _autor, <span class="keywordtype">string</span> _tema,
<a name="l00084"></a>00084                   <span class="keywordtype">double</span> _valor, <span class="keywordtype">string</span> _edicao, <span class="keywordtype">int</span> _anoPublicacao, <span class="keywordtype">string</span> _paginas);
<a name="l00085"></a>00085 
<a name="l00091"></a>00091         <span class="keyword">virtual</span> <a class="code" href="class_livro.html#1f3b49a5fbaf89727b0d0317e128655f" title="Destrutor da classe. Destrutor para liberar mémoria do programa.">~Livro</a>();
<a name="l00092"></a>00092 
<a name="l00098"></a>00098         <span class="keywordtype">void</span> <a class="code" href="class_livro.html#b8a19d42497fd56cba1c6eeeb461a22a" title="Insere o id.">SetId</a>(<span class="keywordtype">long</span> _id);
<a name="l00099"></a>00099 
<a name="l00105"></a>00105         <span class="keywordtype">long</span> <a class="code" href="class_livro.html#092e980e8c4f24183bbd053303ab970a" title="Obtem o id do livro.">GetId</a>();
<a name="l00106"></a>00106 
<a name="l00112"></a>00112         <span class="keywordtype">void</span> <a class="code" href="class_livro.html#f90506b10434c82bc16aec8c2f353d74" title="Insere o titulo no livro.">SetTitulo</a>(<span class="keywordtype">string</span> _titulo);
<a name="l00113"></a>00113 
<a name="l00119"></a>00119         <span class="keywordtype">string</span> <a class="code" href="class_livro.html#49933486534ff5d2939c03d94d16d26b">GetTitulo</a>();
<a name="l00120"></a>00120 
<a name="l00126"></a>00126         <span class="keywordtype">void</span> <a class="code" href="class_livro.html#d38a883663f9112ed23364fb232c6a5b" title="Insere o autor do livro.">SetAutor</a>(<span class="keywordtype">string</span> _autor);
<a name="l00127"></a>00127 
<a name="l00133"></a>00133     <span class="keywordtype">string</span> <a class="code" href="class_livro.html#1b10e53d83d5c082d47877cb78a5755e" title="Obtem o autor do livro.">GetAutor</a>();
<a name="l00134"></a>00134 
<a name="l00140"></a>00140     <span class="keywordtype">void</span> <a class="code" href="class_livro.html#b06bba014f3ece5a8201aa6f3b644f04" title="insere o tema do livro.">SetTema</a>(<span class="keywordtype">string</span> _tema);
<a name="l00141"></a>00141 
<a name="l00147"></a>00147     <span class="keywordtype">string</span> <a class="code" href="class_livro.html#2b453fcb3cc443bbde51ac45add3cc43" title="Obtem o tema do livro.">GetTema</a>();
<a name="l00148"></a>00148 
<a name="l00154"></a>00154     <span class="keywordtype">void</span> <a class="code" href="class_livro.html#80c136ea45939647a921dfe94b93549f" title="Insere o preço em reias do livro.">SetValor</a>(<span class="keywordtype">double</span> _valor);
<a name="l00155"></a>00155 
<a name="l00161"></a>00161     <span class="keywordtype">double</span> <a class="code" href="class_livro.html#ca939892cc7ce33170ad1d8d20657ca0" title="Obtem o preço.">GetValor</a>();
<a name="l00162"></a>00162 
<a name="l00168"></a>00168     <span class="keywordtype">void</span> <a class="code" href="class_livro.html#f59e91e7f3d4ebfd7539703755728314" title="Insere a edição.">SetEdicao</a>(<span class="keywordtype">string</span> _edicao);
<a name="l00169"></a>00169 
<a name="l00175"></a>00175     <span class="keywordtype">string</span> <a class="code" href="class_livro.html#232b743c2081c3d3f937c07703a97aeb" title="Obtem a edição.">GetEdicao</a>();
<a name="l00176"></a>00176 
<a name="l00182"></a>00182     <span class="keywordtype">void</span> <a class="code" href="class_livro.html#7be3cb5a8f8e24675f2f9bf73c18a624" title="Insere o Ano de Publicação.">SetAnoPublicacao</a>(<span class="keywordtype">int</span> _anoPublicacao);
<a name="l00183"></a>00183 
<a name="l00189"></a>00189     <span class="keywordtype">int</span> <a class="code" href="class_livro.html#bd7e6f9016a916fe962c604c0103c6c1" title="Obtem o ano de publicação.">GetAnoPublicacao</a>();
<a name="l00190"></a>00190 
<a name="l00196"></a>00196     <span class="keywordtype">void</span> <a class="code" href="class_livro.html#e10e9a5d5c2bfb0bff6f9889abb0f08e" title="Insere a quantidade de páginas.">SetPaginas</a>(<span class="keywordtype">string</span> _paginas);
<a name="l00197"></a>00197 
<a name="l00203"></a>00203     <span class="keywordtype">string</span> <a class="code" href="class_livro.html#a9c5ee56a562e05bada85a97a4d818e4" title="Obtem a quantidade de páginas.">GetPaginas</a>();
<a name="l00204"></a>00204 
<a name="l00212"></a>00212     <span class="keyword">friend</span> ostream&amp; <a class="code" href="class_livro.html#a2f76d15f7a49649e707e23d7a917bde" title="método para a impressão do livro.">operator&lt;&lt;</a>(ostream &amp;_out, <span class="keyword">const</span> <a class="code" href="class_livro.html" title="Classe para controle dos livros.   Principal elemento do sistema.">Livro</a> &amp;_livro);
<a name="l00213"></a>00213 
<a name="l00214"></a>00214 };
<a name="l00215"></a>00215 
<a name="l00216"></a>00216 <span class="preprocessor">#endif </span><span class="comment">/*LIVRO_H_*/</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Gerado em Wed Dec 3 04:35:41 2008 para kisebo por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.7.1 </small></address>
</body>
</html>
